/*
 * Copyright 2004-2005 aosft
 * 本软件及其所有拷贝的名称，与光盘上或本软件中注明的公司同在。
 * 本软件及文档享有版权，并受国家版权法及国际协约条款的保护。
 * 您不可以从本软件中去掉其版权声明；并保证为本软件的拷贝（本部或部分）* 复制版权声明。
 * 您同意制止以任何形式非法拷贝本软件及文档。
 * 版权信息参见：
 *      http://www.asoft.cn/licenses
 */

package com.asoft.examonline.teach.model;

import java.io.Serializable;

import com.asoft.common.base.model.BaseObject;
import com.asoft.common.basedata.model.Type;

/**
 * <p>Title: 教学资源</p>
 * <p>Description: TransferObject </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: aosft</p>
 * @ $Author: author $
 * @ $Date: 2004/12/17 13:54:17 $
 * @ $Revision: 1.4 $
 * @ created in 2007-5-15
 *
 */

public class TeachResource extends BaseObject
                       implements Serializable
{
        // 标题
        private String title;
        // 知识点
        private Type knowledgePoint;
        
        // 难度
        private Type difficulty;
        
        // 出版社
        private Type publishCompany;
        
        // 标准
        private String standard;
        
        // 电子课文
        private String elecText;
        
        // 经典例题
        private String classicQuest;
        
        // 教学设计
        private String teachDesign;
        
        // 精美课件
        private String courseWare;
        
        // 视频动画
        private String video;
        
        // 背景资料
        private String backGround;
        
        // 百家争鸣
        private String others;
        
        // 主编
        private String authorName;
        
        /**
         * @return difficulty
         */
        public Type getDifficulty()
        {
                return difficulty;
        }

        /**
         * @param difficulty 要设置的 difficulty
         */
        public void setDifficulty(Type difficulty)
        {
                this.difficulty = difficulty;
        }

        /**
         * @return title
         */
        public String getTitle()
        {
                return title;
        }

        /**
         * @param title 要设置的 title
         */
        public void setTitle(String title)
        {
                this.title = title;
        }

        /**
         * @return knowledgePoint
         */
        public Type getKnowledgePoint()
        {
                return knowledgePoint;
        }

        /**
         * @param knowledgePoint 要设置的 knowledgePoint
         */
        public void setKnowledgePoint(Type knowledgePoint)
        {
                this.knowledgePoint = knowledgePoint;
        }
        
        public Type getSection()
        {
                return this.knowledgePoint.getSuperType();
        }
        
        public Type getUnit()
        {
                return this.getSection().getSuperType();
        }        
        
        public Type getCourse()
        {
                return this.getUnit().getSuperType();
        }
        
        public Type getSubject()
        {
                return this.getCourse().getSuperType();
        }
        
        public Type getDomain()
        {
                return this.getSubject().getSuperType();
        }

        /**
         * @return publishCompany
         */
        public Type getPublishCompany()
        {
                return publishCompany;
        }

        /**
         * @param publishCompany 要设置的 publishCompany
         */
        public void setPublishCompany(Type publishCompany)
        {
                this.publishCompany = publishCompany;
        }

        /**
         * @return authorName
         */
        public String getAuthorName()
        {
                return authorName;
        }

        /**
         * @param authorName 要设置的 authorName
         */
        public void setAuthorName(String authorName)
        {
                this.authorName = authorName;
        }

        /**
         * @return backGround
         */
        public String getBackGround()
        {
                return backGround;
        }

        /**
         * @param backGround 要设置的 backGround
         */
        public void setBackGround(String backGround)
        {
                this.backGround = backGround;
        }

        /**
         * @return classicQuest
         */
        public String getClassicQuest()
        {
                return classicQuest;
        }

        /**
         * @param classicQuest 要设置的 classicQuest
         */
        public void setClassicQuest(String classicQuest)
        {
                this.classicQuest = classicQuest;
        }

        /**
         * @return courseWare
         */
        public String getCourseWare()
        {
                return courseWare;
        }

        /**
         * @param courseWare 要设置的 courseWare
         */
        public void setCourseWare(String courseWare)
        {
                this.courseWare = courseWare;
        }

        /**
         * @return elecText
         */
        public String getElecText()
        {
                return elecText;
        }

        /**
         * @param elecText 要设置的 elecText
         */
        public void setElecText(String elecText)
        {
                this.elecText = elecText;
        }

        /**
         * @return others
         */
        public String getOthers()
        {
                return others;
        }

        /**
         * @param others 要设置的 others
         */
        public void setOthers(String others)
        {
                this.others = others;
        }

        /**
         * @return standard
         */
        public String getStandard()
        {
                return standard;
        }

        /**
         * @param standard 要设置的 standard
         */
        public void setStandard(String standard)
        {
                this.standard = standard;
        }

        /**
         * @return teachDesign
         */
        public String getTeachDesign()
        {
                return teachDesign;
        }

        /**
         * @param teachDesign 要设置的 teachDesign
         */
        public void setTeachDesign(String teachDesign)
        {
                this.teachDesign = teachDesign;
        }

        /**
         * @return video
         */
        public String getVideo()
        {
                return video;
        }

        /**
         * @param video 要设置的 video
         */
        public void setVideo(String video)
        {
                this.video = video;
        }

        /** 采用框架提供的操作日志必须填写的项目 */
        public void setModeldetail()
        {
                this.setModelFieldDetail("id",this.id);
                this.setModelFieldDetail("代码",this.code);
                this.setModelFieldDetail("标题",this.title);
                this.setModelFieldDetail("知识点",this.getKnowledgePoint().getName());
                this.setModelFieldDetail("课程标准",this.standard);
                this.setModelFieldDetail("电子课文",this.elecText);
                this.setModelFieldDetail("经典例题",this.classicQuest);
                this.setModelFieldDetail("教学设计",this.teachDesign);
                this.setModelFieldDetail("精美课件",this.courseWare);
                this.setModelFieldDetail("视频动画",this.video);
                this.setModelFieldDetail("背景资料",this.backGround);
                this.setModelFieldDetail("百家争鸣",this.others);
                this.setModelFieldDetail("出版社",this.publishCompany.getName());                
                this.setModelFieldDetail("主编",this.authorName);
                this.setModelFieldDetail("优先级",this.pri);
        }
}
